/*
 * @Descripttion: 
 * @Author: voanit
 * @Date: 2022-05-28 15:02:18
 * @LastEditors: voanit
 * @LastEditTime: 2022-05-29 17:55:57
 */
import React from 'react'

// import Todo from './Todo'
import Home from './pages/Home'
import Login from './pages/Login'
import { BrowserRouter, Route, Link, Switch } from 'react-router-dom'
const App = () => {


  return <BrowserRouter>
    御剑乘风来,除魔天地间!======
    <hr />
    {/* <Todo></Todo> */}
    {/* <Link to='/home/1'>home</Link>====
    <Link to='/login'>login</Link>
    <Switch>
      <Route path='/home' component={Home}></Route>
      <Route path='/login' component={Login}></Route>
    </Switch> */}
    <div>
      <ul>
        <li>
          <Link to="/home/2">首页</Link>
        </li>
        <li>
          <Link to="/login">登录页</Link>
        </li>
      </ul>
      <div>
        <Route path="/home/:id" component={Home}></Route>
        <Route path="/login" component={Login}></Route>
      </div>
    </div>

  </BrowserRouter>
};
export default App